#define _CRT_SECURE_NO_WARNINGS 1
#include "SeqList.h"

void SeqListTest1()
{
	SLT seq;
	SeqListInit(&seq);
	SLTPushBack(&seq, 1);
	SLTPushBack(&seq, 2);
	SLTPushBack(&seq, 3);
	SLTPushBack(&seq, 4);
	SLTPushBack(&seq, 5);
	SLTPrint(&seq);

	SLTPopBack(&seq);
	SLTPopBack(&seq);
	SLTPrint(&seq);

	SLTDestroy(&seq);
}

void SeqListTest2()
{
	SLT seq;
	SeqListInit(&seq);
	SLTPushFront(&seq, 1);
	SLTPushFront(&seq, 2);
	SLTPushFront(&seq, 3);
	SLTPushFront(&seq, 4);
	SLTPushFront(&seq, 5);
	SLTPrint(&seq);

	SLTPopFront(&seq);
	SLTPopFront(&seq);
	SLTPrint(&seq);

	size_t pos = SLTFind(&seq, 3);
	SLTInsert(&seq, pos, 10);
	SLTPrint(&seq);

	SLTErase(&seq, pos);
	SLTPrint(&seq);

	SLTDestroy(&seq);
}

int main()
{
	SeqListTest1();

	return 0;
}